package com.tzstcl.sys.user.mapper;


import com.tzstcl.base.mapper.BaseMapper;
import com.tzstcl.sys.user.model.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限菜单mapper
 *
 * @author haocj
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> selectByPageNumSize(@Param("sysMenu") SysMenu sysMenu, @Param("pageHelperStart") int pageNum, @Param("pageHelperRows") int pageSize);

    List<SysMenu> findListAll(SysMenu sysMenu);

    List<SysMenu> findListAllMenu();

    Integer save(SysMenu sysMenu);

    Integer delete(@Param("ids") String[] ids);

    List<SysMenu> findUserMenu( Long id);
}
